import Vue from 'vue'

export const base = {
  // 学校校区
  campusAdd: params => {
    return Vue.prototype.$post('/base/xxxq/add', params)
  },
  campusList: params => {
    return Vue.prototype.$post('/base/xxxq/list', params)
  },
  campusUpdate: params => {
    return Vue.prototype.$post('/base/xxxq/update', params)
  },
  campusDelete: params => {
    return Vue.prototype.$get(`/base/xxxq/delete/${params}`)
  },
  campusAll: params => {
    return Vue.prototype.$post('/base/xxxq/queryAll', params)
  },
  // 院系信息
  collegeAdd: params => {
    return Vue.prototype.$post('/base/yxxx/add', params)
  },
  collegeDelete: params => {
    return Vue.prototype.$get(`/base/yxxx/delete/${params}`)
  },
  collegeList: params => {
    return Vue.prototype.$post('/base/yxxx/list', params)
  },
  collegeUpdate: params => {
    return Vue.prototype.$post('/base/yxxx/update', params)
  },
  collegeAll: params => {
    return Vue.prototype.$post('/base/yxxx/queryAll', params)
  },
  // collegeAllBy: params => {
  //   return Vue.prototype.$post('/base/yxxx/queryByNoAuth', params)
  // },
  collegeNoAuth: params => {
    return Vue.prototype.$post('/base/yxxx/queryByNoAuth', params)
  },
  // 学校专业信息
  majorAdd: params => {
    return Vue.prototype.$post('/base/zyxx/add', params)
  },
  majorList: params => {
    return Vue.prototype.$post('/base/zyxx/list', params)
  },
  majorDelete: params => {
    return Vue.prototype.$get(`/base/zyxx/delete/${params}`)
  },
  majorUpdate: params => {
    return Vue.prototype.$post('/base/zyxx/update', params)
  },
  majorAll: params => {
    return Vue.prototype.$post('/base/zyxx/queryAll', params)
  },
  // 研究方向
  researchAdd: params => {
    return Vue.prototype.$post('/base/yjfx/add', params)
  },
  researchList: params => {
    return Vue.prototype.$post('/base/yjfx/list', params)
  },
  researchListByStu: params => {
    return Vue.prototype.$post('/base/yjfx/listByStu', params)
  },
  researchDelete: params => {
    return Vue.prototype.$get(`/base/yjfx/delete/${params}`)
  },
  researchUpdate: params => {
    return Vue.prototype.$post('/base/yjfx/update', params)
  },
  researchAll: params => {
    return Vue.prototype.$post('/base/yjfx/queryByDistinct3', params)
  },
  researchListByDistinct: params => {
    return Vue.prototype.$post('/base/yjfx/queryByDistinct3', params)
  },
  researchListByDistinct2: params => {
    return Vue.prototype.$post('/base/yjfx/queryByDistinct3', params)
  },
  // 绩点表
  gpaAdd: params => {
    return Vue.prototype.$post('/base/jdb/add', params)
  },
  gpaList: params => {
    return Vue.prototype.$post('/base/jdb/list', params)
  },
  gpaDelete: params => {
    return Vue.prototype.$get(`/base/jdb/delete/${params}`)
  },
  gpaUpdate: params => {
    return Vue.prototype.$post('/base/jdb/update', params)
  },
  // 数据字典
  dictionaryAdd: params => {
    return Vue.prototype.$post('/upms/dictionary/add', params)
  },
  dictionaryUpdate: params => {
    return Vue.prototype.$post('/upms/dictionary/update', params)
  },
  dictionaryList: params => {
    return Vue.prototype.$post('/upms/dictionary/list', params)
  },
  dictionaryDelete: params => {
    return Vue.prototype.$get(`/upms/dictionary/delete/${params}`)
  },
  dictionaryDetail: params => {
    return Vue.prototype.$get(`/upms/dictionary/info/${params}`)
  },
  dictionaryData: params => {
    return Vue.prototype.$get(`/upms/dictionary/findByTypeCode/${params}`)
  },
  // 学科信息
  subjectAdd: params => {
    return Vue.prototype.$post('/base/xkxx/add', params)
  },
  subjectList: params => {
    return Vue.prototype.$post('/base/xkxx/list', params)
  },
  subjectDelete: params => {
    return Vue.prototype.$get(`/base/xkxx/delete/${params}`)
  },
  subjectUpdate: params => {
    return Vue.prototype.$post('/base/xkxx/update', params)
  },
  subjectAll: params => {
    return Vue.prototype.$post('/base/xkxx/queryAll', params)
  },
  subjectAllByYx: params => {
    return Vue.prototype.$post('/base/xkxx/queryAllByYx', params)
  },
  subjectAllByPyfamb: params => {
    return Vue.prototype.$post('/base/xkxx/queryAllByPyfamb', params)
  },
  // 培养模式学分要求
  creditAdd: params => {
    return Vue.prototype.$post('/base/pymsxfyq/add', params)
  },
  creditList: params => {
    return Vue.prototype.$post('/base/pymsxfyq/list', params)
  },
  creditDelete: params => {
    return Vue.prototype.$get(`/base/pymsxfyq/delete/${params}`)
  },
  creditUpdate: params => {
    return Vue.prototype.$post('/base/pymsxfyq/update', params)
  },
  creditAll: params => {
    return Vue.prototype.$post('/base/pymsxfyq/queryAll', params)
  },
  // 学校基本信息
  schoolInfoAdd: params => {
    return Vue.prototype.$post('/base/xxjbxx/add', params)
  },
  batchDeleteXxjbxx: params => {
    return Vue.prototype.$get(`/base/xxjbxx/delete/${params}`)
  },
  schoolInfoList: params => {
    return Vue.prototype.$post('/base/xxjbxx/list', params)
  },
  schoolInfoListInfo: params => {
    return Vue.prototype.$get(`/base/xxjbxx/info/${params}`)
  },
  schoolInfoQueryAll: params => {
    return Vue.prototype.$post('/base/xxjbxx/queryAll', params)
  },
  schoolInfoDetail: params => {
    return Vue.prototype.$get(`/base/xxjbxx/info/${params}`)
  },
  schoolInfoUpdate: params => {
    return Vue.prototype.$post('/base/xxjbxx/update', params)
  },
  // 地区
  provinceList: params => {
    return Vue.prototype.$post('/base/provinces/list', params)
  },
  cityList: params => {
    return Vue.prototype.$post('/base/cities/list', params)
  },
  areaList: params => {
    return Vue.prototype.$post('/base/areas/list', params)
  },
  // 根据院系以及专业联动研究方向
  searchDirectory: params => {
    return Vue.prototype.$post('base/yjfx/queryByDistinct3', params)
  },
  generatePassStudent: params => {
    return Vue.prototype.$post('admissions/ckfsmd/generatePassStudent', params)
  },
  // 获取导师接口
  getTeachers: params => {
    return Vue.prototype.$post('teacher/dsxx/dszsdwList', params)
  },
  // 获取科目编码接口
  subjectCode: params => {
    return Vue.prototype.$post('admissions/zsSsckkm/kmbmList', params)
  },
  // 根据研究方向获取导师
  getDirecTeachers: params => {
    return Vue.prototype.$post('admissions/zsmlcx/dsxxtgList', params)
  },
  //获取导师
  getTutor: params => {
    return Vue.prototype.$post('teacher/dsxx/queryListByDsyjfx', params)
  },
  //获取学校当前学期,学年,年级
  getSchoolYear : params => {
    return Vue.prototype.$get(`/admissions/bszsjh/sysconfig`)
  },
  //博士根据研究方向获取导师
  getGuide : params => {
    return Vue.prototype.$post('admissions/zsmlcx/dsxxList',params)
  },
  //博士根据科目类型获取科目编码
  getCode :params => {
    return Vue.prototype.$post('admissions/zsBsckkm/query',params)
  },
  //回显科目
  getKskm :params =>{
    return  Vue.prototype.$postJson('admissions/zsBsszszyml/getKskm', params)
  },
  // 获取调剂状态
  getChangeStatus:params => {
    return Vue.prototype.$post('admissions/kstjxx/getList',params)
  },
  // 获取调剂类型
  getChangeSty:params => {
    return Vue.prototype.$post('admissions/kstjc/Kslx',params)
  },
  //获取排序
  getSort: params => {
    return Vue.prototype.$get(`admissions/bsksxx/sort`)
  },
  // 获取所有专业
  getAllCollege: params => {
    return Vue.prototype.$post('base/zyxx/listAll',params)
  },
  //获取学科专业
  getMajor: params =>{
    return Vue.prototype.$post('admissions/bscsfsxxx/getXkzyxx',params)
  },
  // 省市联动学校
  getssSchool: params =>{
    return Vue.prototype.$post('base/xxjbxx/queryAll',params)
  },
  //获取外国语和业务课
  getForeign: params =>{
    return Vue.prototype.$postJson('admissions/zsBsrxkskm/query',params)
  },
  //硕士院系按专业目录获取考试科目
  getMajorKskm: params =>{
    return Vue.prototype.$post('admissions/zsSsszszyml/getKskmmc',params)
  },
  //硕士院系按院系目录获取考试科目
  getClassKskm: params =>{
    return Vue.prototype.$post('admissions/zsFxSsszszyml/getKskmmc',params)
  },
  //博士根据学科获取专业
  getDisline:params =>{
    return Vue.prototype.$post('admissions/bscsfsxxx/listZy',params)
  },
  //领域联动专业
  linkageMajor:params =>{
    return Vue.prototype.$post('admissions/bscsfsxxx/listZyLy',params)
  },
  uploadScore:params => {
    return Vue.prototype.$post('foster/kccj/drdkcjUpload',params)
  },
  //获取复试比例
  getProportion:params => {
    return Vue.prototype.$postJson('admissions/ssfsblpz/jsfsbl',params)
  },
  unionBaseALl: params => {
    return Vue.prototype.$post('/base/lhpyjd/queryAll', params)
  },
  shiftList: params => {
    return Vue.prototype.$post('/base/dwddgzxx/list', params)
  },
  shiftAdd: params => {
    return Vue.prototype.$postJson('/base/dwddgzxx/add', params)
  },
  shiftUpdate: params => {
    return Vue.prototype.$postJson('/base/dwddgzxx/update', params)
  },
  shiftDdh: params => {
    return Vue.prototype.$postJson('/base/dwddgzxx/bindNlqmd', params)
  },
  shiftDetail: id => {
    return Vue.prototype.$get(`/base/dwddgzxx/info/${id}`)
  },
  shiftDelete: ids  => {
    return Vue.prototype.$get(`/base/dwddgzxx/delete/${ids}`)
  },
  ksList: params => {
    return Vue.prototype.$post('/base/dwddgzxx/ksxxList', params)
  },
  unionBaseALlForTeacher: params => {
    return Vue.prototype.$post('/base/lhpyjd/queryAllForTeacher', params)
  },
  sysMessageDelete: params => {
    return Vue.prototype.$get(`/base/sysMessage/delete/${params}`)
  },
  sysMessageDeleteAll : params => {
    return Vue.prototype.$get(`/base/sysMessage/deleteByUser`)
  },
  sysGgxxInfo: params => {
    return Vue.prototype.$get(`/base/ggxx/info/${params}`)
  },
  schoolRollBasic: params => {
    return Vue.prototype.$get(`/schoolRoll/tmybmxx/basic`)
  },
  schoolRollYxList: params => {
    return Vue.prototype.$post(`/schoolRoll/tmybmzyml/yxList`,params)
  },
  schoolRollZyList: params => {
    return Vue.prototype.$post(`/schoolRoll/tmybmzyml/zyList`,params)
  },
  schoolRollYxzt: params => {
    return Vue.prototype.$post(`/schoolRoll/xjxx/yxtz`,params)
  },
  getTime4Ss: params => {
    return Vue.prototype.$post(`/base/dwddgzxx/getTime4Ss`,params)
  },
  updateTime4Ss: params => {
    return Vue.prototype.$post(`base/dwddgzxx/updateTime4Ss`, params)
  },
  getTime4Bs: params => {
    return Vue.prototype.$post(`/base/dwddgzxx/getTime4Bs`,params)
  },
  updateTime4Bs: params => {
    return Vue.prototype.$post(`/base/dwddgzxx/updateTime4Bs`,params)
  },
  getSecondTime: params => {
    return Vue.prototype.$post(`/admissions/fscjgl/getTime`,params)
  },
  updateSecondTime: params => {
    return Vue.prototype.$post(`/admissions/fscjgl/updateTime`,params)
  },
}
